package com.koro.dao;

import com.koro.entity.Goods;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface GoodsRepository extends ElasticsearchRepository<Goods,Long> {

    // 按关键词分页查询
    public Page<Goods> findByGoodsNameLike(String name, Pageable pageable);
}
